package models

import (
	"time"
)

type Session struct {
	Id   int
	Uuid string `orm:"unique;index;size(32)"` //唯一uuid
	Nick string `orm:"size(128)" `            //昵称
	Himg string `orm:"size(256)" `            //头像地址

	Flag int

	Live   int  `orm:"-"`
	Expire bool `orm:"default(0)"`

	CreateAt time.Time `orm:"auto_now_add;type(datetime)"` //创建时设置为当前时间
	UpdateAt time.Time `orm:"auto_now;type(datetime)"`     //创建时设置为当前时间
	ExpireAt time.Time `orm:"type(datetime)" `             //创建更新设置为当前时间

	UserId string `orm:"size(32)" `
	OpenId string `orm:"size(64)"`
}
